javascript constants best practices